package com.jp.vo;

import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Digits;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @类名称: Member
 * @类功能描述
 * @作者 蒋正午
 * @日期 2019-09-10  0:02
 */
public class Member implements Serializable {

    private static final long serialVersionUID = 5676339119453695611L;

    @NotNull(message = "{member.mid.notnull.error}")
    private Integer mid;
    @NotEmpty(message = "{member.name.notnull.error}")
    private String name;
    @NotNull(message = "{member.salary.notnull.error}")
    @Digits(message = "{member.salary.digits.error}", integer = 3, fraction = 1) // 整数位与小数位
    private Double salary;
    @NotNull(message = "{member.birthday.notnull.error}")
    private Date birthday;

    public Member() {

    }

    public Integer getMid() {

        return mid;
    }

    public void setMid(Integer mid) {

        this.mid = mid;
    }

    public String getName() {

        return name;
    }

    public void setName(String name) {

        this.name = name;
    }

    public Double getSalary() {

        return salary;
    }

    public void setSalary(Double salary) {

        this.salary = salary;
    }

    public Date getBirthday() {

        return birthday;
    }

    public void setBirthday(Date birthday) {

        this.birthday = birthday;
    }
}
